import request from '@/utils/request'

export function loginByUsername(username, password) {
  const data = {
    username,
    password,
    randomStr:'477551530847005914',
    code:'1111',
    scope:'server',
    grant_type:'password'

  }
  return request({
    url: '/auth/oauth/token',
    method: 'post',
    // data
    params:  data
  })
}

